package com.douban.app.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Subject {
    //主键id
    private String id;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime gmtCreated;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime gmtModified;
    //名称
    public String name;
    //详细说明
    public String description;
    //封面图
    public String cover;
    //对歌单来说，指作者
    //对兆赫来说，指音乐家
    private String master;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    public LocalDateTime publishDate;
    //一级分类：兆赫  歌单
    private String subjectType;
    //二级分类： 如 从艺术家出发artist，心情 mood
    private String subjectSubType;
    //关联的歌曲列表
    private List<String> songIds;

    private LocalDate publishedDate;
}